Ext.define("AM.view.UserList",{
	extend:'Ext.grid.Panel',
	alias:'widget.userlist',
	title:'laoluo grid',
	frame:true,
	width:800,
	height:300,
	columns:[
		{text:'name',dataIndex:'name',width:100},
		{text:'age',dataIndex:'age',width:100},
		{text:'email',dataIndex:'email',width:200}
	],
	store : 'Users',
	initComponent:function(){
		this.callParent(arguments);
	},
	tbar: [
		{ xtype: 'button',id:'new',text: '新建',iconCls:'icon-add'},
		{ xtype: 'button',id:'update',text: '修改',iconCls:'icon-edit'},
		{ xtype: 'button',id:'delete',text: '删除',iconCls:'icon-remove'},
		{ xtype: 'button',id:'cancel',text: '取消',iconCls:'icon-cancel'}
	],
	dockedItems :[{
			xtype:'pagingtoolbar',
			store:'Users',
			dock:'bottom',
			displayInfo:true
	}],
	selType:'checkboxmodel',//设定选择模式
	multiSelect:true//运行多选
});